package cn.com.thingo.hyintelligent.app.enums;

public enum PlayerNumEnum {
    ONE(1, "一"), TWO(2, "二"), THREE(3, "三"), FOUR(4, "四");
    private int mKey;
    private String mValue;

    PlayerNumEnum(int key, String value) {
        mKey = key;
        mValue = value;
    }

    public int getKey() {
        return mKey;
    }

    public void setKey(int key) {
        mKey = key;
    }

    public String getValue() {
        return mValue;
    }

    public void setValue(String value) {
        mValue = value;
    }

    public static String getValue(int key) {
        for (PlayerNumEnum numEnum :
                values()) {
            if (numEnum.getKey() == key) {
                return numEnum.getValue();
            }
        }
        return null;
    }

}
